import { Routes, RouterModule } from '@angular/router'
import { ModuleWithProviders } from '@angular/core';
import { EntranceComponent } from './entrance.component';
import { Test2Component } from '../../../publish/src/component/menu/text2';
import { TestComponent } from '../../../publish/src/component/menu/text';



const routes: Routes = [
    {
        path: 'entrance',
        component: EntranceComponent,
        children: [{
            path: '',
            component: Test2Component
        }, {
            path: 'children1',
            component: TestComponent
        }]
    }

];

export const EntranceRouting: ModuleWithProviders = RouterModule.forRoot(routes);